<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/easyui/easyui.js"></script>
<script type="text/javascript">
$(function(){
	$.getJSON("catalog_ajax.html?catDad=002&time="+Math.random(),
		function(data){
		  $.each(data, function(i,item){
			   $("#catNo").append("<option value='"+item.catNo+"'>"+item.catName+"</option>");
		});
		 $("#catNo").val("<s:property value="operatorBean.catNo"/>");
	}); 
});
</script>
</head>
<body >
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="rof_saveoperator.html" method="post" enctype="multipart/form-data">
		<table width="600" border="0" style="margin: 5px;">
			<tr><td height="25">主键 : </td></tr>
			<tr><td height="25"><input type="text" name="optNo" id="optNo" style="width: 320px;" value="<s:property value="operatorBean.optNo"/>"/></td></tr>
			<tr><td height="25">组织架构编码 : </td></tr>
			<tr><td height="25"><select name="catNo" id="catNo" style="width: 240px;" /></td></tr>
			<tr><td height="25">工号 : </td></tr>
			<tr><td height="25"><input type="text" name="optId" id="optId" value="<s:property value="operatorBean.optId"/>"/> (6位纯数字)</td></tr>
			<tr><td height="25">操作员姓名 : </td></tr>
			<tr><td height="25"><input type="text" name="optName" id="optName" value="<s:property value="operatorBean.optName"/>"/></td></tr>
			<tr><td height="25">登录密码 : </td></tr>
			<tr><td height="25"><input type="password" name="optPwd" id="optPwd" value=""/> (至少8位数字字母组合)</td></tr>
			<tr><td height="25">再次输入密码 : </td></tr>
			<tr><td height="25"><input type="password" name="optPwdRe" id="optPwdRe" value=""/></td></tr>
			<tr><td height="25">是否允许多点登录 : </td></tr>
			<tr><td height="25"><s:radio name="optPoint"  id="optPoint"  list="#{'1':'是','0':'否'}" listKey="key" listValue="value" value="operatorBean.optPoint"/></td></tr>
			<tr><td height="25">状态 : </td></tr>
			<tr><td height="25"><s:radio name="optState"  id="optState"  list="#{'1':'正常','0':'停用'}" listKey="key" listValue="value" value="operatorBean.optState"/></td></tr>
			<tr><td height="25">备注 : </td></tr>
			<tr><td height="25"><textarea name="optRemark" id="optRemark" /><s:property value="operatorBean.optRemark"/></textarea></td></tr>
			<tr><td height="25"> </td></tr>
			<tr>
				<td height="25">
					<input type="button" class="submit" value="提交单据" onclick="sform.submit();"/>
					<input type="button" class="submit" value="返回" onclick="history.go(-1);"/>
				</td>
			</tr>
		</table>
	</form>
	</div>
</body>
</html>

